# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Pablo Correa Gomez <ablocorrea@hotmail.com>
pkgname=gnome-software-plugin-apk
pkgver=0.10.0
pkgrel=0
pkgdesc="APK plugin for GNOME Software"
url="https://github.com/Cogitri/gnome-software-plugin-apk"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # apk-polkit-rs
license="GPL-2.0-or-later"
makedepends="meson gnome-software-dev apk-polkit-rs-dev appstream-dev"
checkdepends="py3-dbusmock"
options="!check" # Tests will fail if gnome-software-plugin-apk is installed
subpackages="$pkgname-dbg"
source="$pkgname-$pkgver.tar.gz::https://github.com/Cogitri/gnome-software-plugin-apk/archive/v$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

check() {
	meson test --no-rebuild -C output
}

sha512sums="
070812ebd5da29f0b88dab3875600f2a17bb9df30dea4db8682d9c4a3878006b4e25c28b1b58bc12e6712b10c4c708da70368695d82ab8e5ed07543ba3406955  gnome-software-plugin-apk-0.10.0.tar.gz
"
